class CreatePosts < ActiveRecord::Migration
  def self.up   
    create_table "posts", :force => true do |t|
      t.column :title,                     :string
      t.column :created_at,                :datetime
      t.column :updated_at,                :datetime
      t.column :user_id,                   :integer
      t.column :content,                   :string
      t.column :parent_id,                 :integer
      t.column :board_id,                  :integer
    end
    
  end

  def self.down
    drop_table "posts"
  end
end